﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebAsp.DTO;
using WebAsp.DAL;
using FredCK;
using System.Windows.Forms;

namespace WebAsp.Admin.News
{
    public partial class Create : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            NewsDTO item = Editor_Create.getInformation;
            //Code Insert ở đây
            NewsDAL.Insert(item);
            Response.Redirect("/Admin/News");
        }
    }
}